package com.example.helloserviceapi.service;

import com.example.helloserviceapi.model.User;
import org.springframework.web.bind.annotation.*;

/**
 * Created by yxw on 2017/10/5.
 */
@RequestMapping("refactor")
public interface HelloService {

   /* @RequestMapping("/hello")
    String hello();*/

    @RequestMapping(value = "/hello4", method= RequestMethod.GET)
    String hello(@RequestParam("name") String name);


    @RequestMapping(value = "hello5", method= RequestMethod.GET)
    User hello(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

    @RequestMapping(value = "hello6", method= RequestMethod.POST)
    String hello(@RequestBody User user);
}
